<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Andy的博客</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.css">
    <link rel="stylesheet" href="../static/css/me.css" th:href="@{/css/me.css}">
    <!--图标-->
    <link rel="icon" type="image/ico" sizes="144x144" href="../static/images/favicon.ico"/>
    <!--网易云-->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css">
    <script src="http://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.js"></script>
    <script src="http://cdn.jsdelivr.net/npm/meting@1.2.0/dist/Meting.min.js"></script>
    <!--樱花背景-->
    <script src="https://api.ly522.com/js/yinghua.js"></script>
    <!--点击花花-->
    <script src="https://cdn.jsdelivr.net/gh/Sanarous/files@1.151/js/click.min.js"></script>

</head>

<body>
<nav class="ui inverted attached segment m-padded-tb-mini m-shadow-small">
    <div class="ui container">
        <div class="ui inverted secondary stackable menu">
            <h2 class="ui teal header secondary item">Andy的博客</h2>
            <a href="#" th:href="@{/main}" target="_blank" class="m-item item m-mobile-hide active"> <i
                    class="home icon"></i>首页</a>
            <a href="#" th:href="@{/types/-1}" target="_blank" class="m-item item m-mobile-hide"> <i
                    class="idea icon"></i>分类</a>
            <a href="#" th:href="@{/tags/-1}" target="_blank" class="m-item item m-mobile-hide"> <i
                    class="tags icon"></i>标签</a>
            <a href="#" th:href="@{/archives}" target="_blank" class="m-item item m-mobile-hide"> <i
                    class="clone icon"></i>归档</a>
            <a href="#" th:href="@{/about}" target="_blank" class="m-item item m-mobile-hide"> <i class="info icon"></i>关于我</a>
            <div class="right item m-mobile-hide">
                <form name="search" action="#" th:action="@{/search}" method="post" target="_blank">
                    <div class="ui category search">
                        <div class="ui icon input">
                            <input type="text" name="query" class="prompt" placeholder="Search...." th:value="${query}">
                            <i onclick="document.forms['search'].submit()" class="search link icon"></i>
                        </div>
                        <div class="results"></div>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <a href="#" class="ui menu toggle black icon button m-top-right m-mobile-show">
        <i class="sidebar icon"></i>
    </a>
</nav>

<!--通知栏-->
<div class="ui animated flipInX" style="text-align:center;margin-top: 15px;margin-bottom: -20px">
    <span style="font-weight: bold;font-size: 17px;color: #FFDEAD;font-family: 华文楷体">告曰,博客缞矣!!域名请中,少待数日.今且试之,以近在将试及成业之事,故多处所无虑,存诸多未知之bug,以无反馈统,烦请诸公论区多言,谢无尽焉!无语言表.</span>
</div>

<!--中间内容 m-container样式 左右存在间距-->
<div class="m-padded-tb-big fadeIn">
    <!--根据屏幕的尺寸达到最好的效果-->
    <div class="ui container">
        <div class="ui stackable grid">
            <!--左边的博客列表 总共十三份  左边是一份-->
            <div class="eleven wide column">
                <!--头部 top attached 连成一个无间隙-->
                <div class="ui top attached segment">
                    <div class="ui middle aligned two column grid">
                        <div class="column">
                            <h3 class="ui teal header">博客</h3>
                        </div>
                        <div class="right aligned column">
                            共 <h3 class="ui pink header m-inline-block m-text-thin" th:text="${page.total}">14</h3>&nbsp;篇
                        </div>
                    </div>
                </div>
                <!--具体的文章content-->
                <div class="ui attached segment">
                    <!--一篇帖子-->
                    <div class="ui padded vertical segment m-padded-tb-normal" th:each="blog : ${page.list}">
                        <div class="ui middle aligned mobile reversed stackable grid">
                            <div class="eleven wide column">
                                <h3 class="ui header"><a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank"
                                                         class="m-black" th:text="${blog.title}">听说，那片樱花又开了。</a></h3>
                                <p class="m-text" th:text="|${blog.description}|">初次听到那片关于樱花的消息时还是懵懵懂懂的年纪，
                                    转眼却已过了多年。在时间的打磨下已褪去了年少的浮躁与轻狂本以为不会再对樱花有所悸动，
                                    但听到关于它的消息时却还是不免心潮澎湃，一瞬间，有关樱花的记忆喷涌而来，被浓烈的樱花香重重包围，
                                    无法逃脱却也是不知所措……
                                </p>
                                <div class="ui stackable grid">
                                    <div class="eleven wide column">
                                        <div class="ui horizontal link list">
                                            <!--头像avatar-->
                                            <div class="item">
                                                <img src="https://unsplash.it/100/100?image=1005"
                                                     th:src="@{${blog.user.avatar}}" alt="" class="ui avatar image">
                                                <div class="content">
                                                    <a href="#" class="ui pink label m-padded-mini"
                                                       th:text="${blog.user.nickname}">
                                                        Andy
                                                    </a>
                                                </div>
                                            </div>
                                            <!--日期-->
                                            <div class="item">
                                                <i class="calendar alternate icon"></i><span
                                                    th:text="${#dates.format(blog.createTime,'yyyy-MM-dd HH:mm')}">2021-3-17</span>
                                            </div>
                                            <!--浏览次数-->
                                            <div class="item">
                                                <i class="eye icon"></i> <span th:text="${blog.views}">1212</span>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="right aligned five wide column">
                                        <a href="#" target="_blank" th:href="@{/types/{id}(id=${blog.type.id})}"
                                           class="ui teal label m-padded-mini" th:text="${blog.type.name}">认知升级</a>
                                    </div>
                                </div>
                            </div>

                            <div class="five wide column">
                                <a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank">
                                    <img src="https://picsum.photos/800/400" th:src="@{${blog.firstPicture}}" alt=""
                                         class="ui rounded image">
                                </a>
                            </div>

                        </div>
                    </div>
                </div>
                <div class="ui bottom attached segment">
                    <div class="ui middle aligned two column grid">
                        <div class="column">
                            <a href="#" th:href="@{/main/(pageNum=${page.prePage})}" th:unless="${page.isFirstPage}"
                               class="ui mini orange button"><span style="font-size: 15px">上一页</span></a>
                        </div>
                        <div class="right aligned column">
                            <a href="#" th:href="@{/main/(pageNum=${page.nextPage})}" th:unless="${page.isLastPage}"
                               class="ui mini orange button"><span style="font-size: 15px">下一页</span></a>
                        </div>
                    </div>
                </div>
            </div>

            <!--右边的top-->
            <div class="five wide column">
                <!--博客分类-->
                <div class="ui segments m-margin-large">
                    <!--头部-->
                    <div class="ui secondary segment">
                        <div class="ui two column grid">
                            <div class="column">
                                <i class="purple idea icon"></i> <b>分类</b>
                            </div>
                            <div class="right aligned column">
                                <a href="#" th:href="@{types/-1}" target="_blank">more <i
                                        class="angle double right icon"></i></a>
                            </div>
                        </div>
                    </div>
                    <div class="ui teal segment">
                        <!--分类下的菜单-->
                        <div class="ui fluid vertical menu">
                            <a href="#" th:href="@{/types/{id}(id=${type.id})}" target="_blank" class="item"
                               th:each="type : ${types}">
                                <span th:text="${type.name}">学习日志</span>
                                <div class="ui teal label" th:text="${#arrays.length(type.blogs)}">13</div>
                            </a>
                            <!--/*-->
                            <a href="#" class="item">
                                生活日常
                                <div class="ui teal label">13</div>
                            </a>
                            <a href="#" class="item">
                                技术分享
                                <div class="ui teal label">13</div>
                            </a>
                            <a href="#" class="item">
                                求职交流
                                <div class="ui teal label">13</div>
                            </a>
                            <a href="#" class="item">
                                情感流露
                                <div class="ui teal label">13</div>
                            </a>
                            <a href="#" class="item">
                                考研上岸
                                <div class="ui teal label">13</div>
                            </a>
                            <!--*/-->
                        </div>
                    </div>
                </div>


                <!--博客标签-->
                <div class="ui segments m-margin-large">
                    <!--头部-->
                    <div class="ui secondary segment">
                        <div class="ui two column grid">
                            <div class="column">
                                <i class="pink tags icon"></i> <b>标签</b>
                            </div>
                            <div class="right aligned column">
                                <a href="#" th:href="@{tags/-1}" target="_blank">more <i
                                        class="angle double right icon"></i></a>
                            </div>
                        </div>
                    </div>
                    <div class="ui teal segment">
                        <a href="#" th:href="@{/tags/{id}(id=${tag.id})}" target="_blank"
                           class="ui m-teal label m-margin" th:each="tag : ${tags}">
                            <span th:text="${tag.name}">方法论</span>
                            <div class="detail" th:text="${#arrays.length(tag.blogs)}">23</div>
                        </a>
                        <!--/*-->
                        <a href="#" target="_blank" class="ui teal basic left pointing label m-margin-tb-tiny">
                            高等代数
                            <div class="detail">13</div>
                        </a>
                        <a href="#" target="_blank" class="ui teal basic left pointing label">
                            高等代数
                            <div class="detail">13</div>
                        </a>
                        <!--*/-->
                    </div>
                </div>

                <!--最新推荐-->
                <div class="ui segments m-margin-large">
                    <div class="ui secondary segment">
                        <i class="red bookmark icon"></i> <b>最新推荐</b>
                    </div>
                    <div class="ui segment" th:each="blog : ${recommendBlogs}">
                        <a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank" class="m-black m-text-thin"
                           th:text="${blog.title}">用户故事（User Story）</a>
                    </div>
                    <!--/*-->
                    <div class="ui segment">
                        <a href="#" target="_blank" class=" m-black m-text-fat">买女孩的小火柴</a>
                    </div>
                    <div class="ui segment">
                        <a href="#" target="_blank" class=" m-black m-text-fat">白雪公主</a>
                    </div>
                    <!--*/-->
                </div>

                <!--二维码-->
                <h6 class="ui horizontal pink divider header">交个朋友吧</h6>

                <div class="ui centered card" style="width: 11em">
                    <img src="../static/images/wechat.jpg" th:src="@{/images/wechat.jpg}" class="ui rounded image">
                </div>

            </div>
        </div>
    </div>
</div>
<br>
<br>
<!--音乐插件-->
<!--音乐插件-->
<div class="aplayer" data-id="6719186939" data-server="netease" data-type="playlist" data-fixed="true"
     data-autoplay="true"
     data-volume="0.6" data-theme="#b7daff">
</div>
<!--底部footer-->
<footer th:replace="_fragments :: footer" class="ui inverted divided vertical segment m-padded-tb-massive">
    <div class=" ui stackable center aligned container">
        <div class="ui inverted divided stackable grid">
            <!--二维码-->
            <div class="three wide column">
                <div class="ui inverted link list">
                    <div class="item">
                        <img src="../static/images/wechat.jpg" th:src="@{/images/wechat.jpg}" class="ui rounded"
                             style="width: 130px" alt="">
                    </div>
                </div>
            </div>

            <div class="three wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced">最新博客</h4>
                <div class="ui inverted link list">
                    <a href="#" class="item">用户故事 (User Story)</a>
                    <a href="#" class="item">用户故事 (User Story)</a>
                    <a href="#" class="item">用户故事 (User Story)</a>
                </div>
            </div>

            <div class="three wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced">联系我</h4>
                <div class="ui inverted link list">
                    <a href="#" class="item">Email: 1490477595@qq.com</a>
                    <a href="#" class="item">QQ: 1490477595</a>
                </div>
            </div>

            <div class=" seven wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced">博猪寄语</h4>
                <p class="m-text-thin m-text-spaced m-opacity-mini">
                    你遇到的每个人都是别人想见又见不到的人，请珍惜每一刻相处的时光，因为我们不知道哪一次再见，会变成再也不见。</p>
            </div>
        </div>
        <!--线条-->
        <div class="ui inverted section divider"></div>
        <p class="m-text-thin m-text-spaced m-opacity-small">Copyright © 2020 - 2021 AndyLee</p>

    </div>

</footer>

<script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.js"></script>


<script>
    $('.menu.toggle').click(function () {
        $('.m-item').toggleClass('m-mobile-hide');
    });
</script>

</body>
</html>
